//
//  AboutOurView.m
//  LoveTrail
//
//  Created by giantumbrella on 15/6/11.
//  Copyright (c) 2015年 赵娟. All rights reserved.
//

#import "AboutOurView.h"
#import "CommonMacro.h"
@interface AboutOurView()
@property (nonatomic,strong) UIView *lineView;
@property (nonatomic,strong) UIView *bgView;
@property (nonatomic,strong) UIScrollView *scrollViewText;
@property (nonatomic,strong) UILabel *textLabel;
@property (nonatomic,strong) UILabel *titleLabel;
@end
@implementation AboutOurView

- (id)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self addSubViews];
        self.backgroundColor = UIColorWithRGBA( 255, 255, 255, 1);
    }
    return self;
}


#pragma mark 创建子控件
- (void)addSubViews
{
    self.bgView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT*0.8)];
    [self addSubview:self.bgView];
    
    self.lineView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 2)];
    self.lineView.backgroundColor = UIColorWithRGBA(220, 220, 220, 1);
    [self.bgView addSubview:self.lineView];
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 10, SCREEN_WIDTH, SCREEN_HEIGHT*0.1)];
    self.titleLabel.text = @"关于我们";
    self.titleLabel.font = [UIFont boldSystemFontOfSize:20];
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.textColor = UIColorWithRGBA(175, 175, 175, 1);
    [self.bgView addSubview:self.titleLabel];
    
    self.textLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, self.titleLabel.frame.origin.y+self.titleLabel.frame.size.height, SCREEN_WIDTH-20, SCREEN_HEIGHT*0.79)];
    self.textLabel.text = @"The story that some time ago,a man punished his 3-year-old ddaughter for wasting a roll of gold wrapping paper.Money was tigth and he became infuriated when the child tried to decorate a box to put under the Christmas tree. Nevertheless,the littile girl brought the gift to her father the next morning and said,This is for you,DaddyThe story goes that some time ago,a man punished his 3-year-old daughter for wasting a roll of gold wrapping paper.Money was tight and he become infuriated when the child tried to decorate a box";
    [self.bgView addSubview:self.textLabel];
    self.textLabel.numberOfLines = 0;
    self.textLabel.textAlignment = NSTextAlignmentLeft;
    self.textLabel.textColor = UIColorWithRGBA(175, 175, 175, 1);
    [self.textLabel sizeToFit];
}

@end
